#define _CRT_SECURE_NO_WARNINGS 1

#include "Sort.h"
#include "Stack.h"

void TestHeapSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	HeapSort(a, len);

	PrintArray(a, len);
}

void TestQuickSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	QuickSort(a, 0, len - 1);

	PrintArray(a, len);
}

void TestQuickSortNonR()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	QuickSortNonR(a, 0, len - 1);

	PrintArray(a, len);
}

int main()
{
	TestQuickSortNonR();

	return 0;
}